home *** CD-ROM | disk | FTP | other *** search
- Path: info.ucla.edu!psgrain!solace!user
- From: lars.farm@nts.mh.se (Lars Farm)
- Newsgroups: comp.lang.c++
- Subject: Re: Why don't you use garbage collection
- Date: Wed, 17 Apr 1996 13:11:29 +0200
- Organization: pv
- Message-ID: <AD9A9E819668CB68B@dialup100-3-15.swipnet.se>
- References: <AD94A731966836BF@dialup97-6-14.swipnet.se> <1996Apr16.110526.1846@ittpub>
- NNTP-Posting-Host: dialup100-3-15.swipnet.se
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
-
- In article <1996Apr16.110526.1846@ittpub>,
- wil@ittpub.nl (Wil Evers) wrote:
-
- >OK, let's get serious about this:
- >
- >1. Don't we think C++ is complex enough as it is?
-
- See the Detlefs/Ellis GC proposal. Seems a fairly small change in the
- language compared to what is done with templates and exceptions and rtti,
- and... A couple of keywords: gc/nogc to be used optionally with class
- declarations and optionally with operator new to select collected or non
- collected heap. Later gc/nogc overrides previous. There is a way to
- finalize, but the need for this is made much smaler. What is inside most
- copy/op=/dtors? Code to copy heap data and release data held by pointers.
- What would copy/op=/dtors look like when pointers can be shared and you
- don't have to say delete? Many of them would become redundant! The
- (current) compiler generated op= and copy would very often suffice. The
- minority of objects with non empty dtors would be deleted manually just
- like now. This makes things simpler, not harder. Anyway, this wont happen.
- GC seems not to appeal to the committee members. If it did GC would shurely
- be in the language by now.
-
-
-